﻿using System;
using Downloader.Domain;

namespace Downloader.Web.Controllers.ViewModels
{
    public class WebSiteInfoViewModel
    {
        public WebSiteInfoViewModel(WebSiteInfo webSiteInfo)
        {
            if(webSiteInfo!=null)
            {
            this.Id = webSiteInfo.Id;
            this.WebSiteName = webSiteInfo.WebSiteName;
            this.SubWebSiteName = webSiteInfo.SubWebSiteName;
            this.Introduction = webSiteInfo.Introduction;
            this.KeyWord = webSiteInfo.KeyWord;
            }
        }

        public int Id { get; set; }
        /// <summary>
        /// 网站名称
        /// </summary>
        public  string WebSiteName { get; set; }
        /// <summary>
        /// 网站副标题
        /// </summary>
        public  string SubWebSiteName { get; set; }
        /// <summary>
        /// 网站介绍
        /// </summary>
        public  string Introduction { get; set; }
        /// <summary>
        /// 网站关键字
        /// </summary>
        public  string KeyWord { get; set; }
        /// <summary>
        /// 网站备案信息
        /// </summary>
        public  string RecordInfo { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public  DateTime CreateTime { get; set; }
        /// <summary>
        ///启动时间
        /// </summary>
        public  DateTime StartTime { get; set; }
    }
}